[Bugfix]: Fix cross attention backend selection for Turing GPU#31806
Merged
Isotr0py merged 1 commit intovllm-project:mainfrom Jan 6, 2026
Merged
[Bugfix]: Fix cross attention backend selection for Turing GPU#31806Isotr0py merged 1 commit intovllm-project:mainfrom
Isotr0py merged 1 commit intovllm-project:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request addresses a bug where an incorrect attention backend was selected for cross-attention on Turing GPUs, causing a NotImplementedError. The fix involves explicitly passing attn_type=AttentionType.ENCODER_DECODER when retrieving the attention backend in CrossAttention. This ensures that a backend supporting encoder-decoder attention is selected, resolving the issue. The change is correct and effectively fixes the bug. I have no further suggestions.
noooop
approved these changes
Jan 6, 2026
LucasWilkinson
pushed a commit
to neuralmagic/vllm
that referenced
this pull request
Jan 6, 2026
…project#31806) Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
yugong333
pushed a commit
to yugong333/vllm
that referenced
this pull request
Jan 9, 2026
…project#31806) Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
akh64bit
pushed a commit
to akh64bit/vllm
that referenced
this pull request
Jan 16, 2026
…project#31806) Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
dsuhinin
pushed a commit
to dsuhinin/vllm
that referenced
this pull request
Jan 21, 2026
…project#31806) Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
ItzDEXX
pushed a commit
to ItzDEXX/vllm
that referenced
this pull request
Feb 19, 2026
…project#31806) Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
attn_type=AttentionType.ENCODER_DECODERwhen callingget_attn_backend:Test Plan
Test Result
Test should pass on T4 now.
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.